﻿@ECHO OFF
SET SOLUTIONNAME=Community.SharePoint.PdfIcon.wsp
SET FEATURENAME=Community.SharePoint.PdfIcon
SET STSADM=%PROGRAMFILES%\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe

"%STSADM%" -o deactivatefeature -name %FEATURENAME%

"%STSADM%" -o retractsolution -name %SOLUTIONNAME% -immediate
"%STSADM%" -o execadmsvcjobs

"%STSADM%" -o deletesolution -name %SOLUTIONNAME%

rem On multi-server farms, you may need to wait until 
rem deployment has finished on all servers before running this next cmd:
iisreset /noforce
